﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tel_list.aspx.cs" Inherits="HY.WEB.OA.tellist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
        <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .redbutton button
        {
            color: #FF0000;
        }
    </style>
</head>
<body>
  <form id="form1" runat="server">
    <div >
    
        <ext:PageManager ID="PageManager1" runat="server"  AutoSizePanelID="Panel1"  />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>
      
        <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true" AutoScroll="true"  
            ShowBorder="true"  Title="Panel" ShowHeader="false">
            <Items>
     

<ext:Form ID="Form2" runat="server" Height="55px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>  
   <ext:DropDownList ID="ddlcomp" runat="server" Label="选择企业">  </ext:DropDownList>  
    
        <ext:DropDownList ID="ddlperson" runat="server" Label="选择员工">  </ext:DropDownList>      
         <ext:DatePicker runat="server" Label="开始日期" EmptyText="请选择查询日期"   ID="date1"   DateFormatString="yyyy-M-d"  />
   <ext:DatePicker runat="server" Label="结束日期" EmptyText="请选择查询日期"   ID="date2"   DateFormatString="yyyy-M-d"  /> 
         
</Items>
</ext:FormRow>
<ext:FormRow ID="FormRow2" runat="server">
<Items>
  
    <ext:DropDownList ID="ddltype" runat="server" Label="选择类型">
         <ext:ListItem Text="企业" Value="CP" />
         <ext:ListItem Text="中介" Value="ZJ" />
         <ext:ListItem Text="学校" Value="SO" />
          <ext:ListItem Text=" " Value=" " Selected="true" />
           </ext:DropDownList> 
              <ext:TextBox ID="txtcomp" runat="server" Label="关键字" Text="">  </ext:TextBox> 
  
   <ext:Button ID="btsearch" runat="server" Text="查询" OnClick="btsearch_Click"> </ext:Button>

</Items>
</ext:FormRow>
</Rows>
</ext:Form>

  
        <ext:Panel ID="Panel2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="false" ShowHeader="false" Title="Panel">
            <Items>
  <ext:Grid ID="Grid1" Title="数据列表"   Height="390px"     PageSize="15" ShowBorder="true" ShowHeader="true"  
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid,cbh"  AllowSorting="true" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                   
                 
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>            
      
                  <ext:HyperLinkField  Width="180px"   DataToolTipField="cname" DataTextField="cname"  SortField="cname" HeaderText="企业名称" 
            DataNavigateUrlFields="cbh" DataNavigateUrlFormatString="../sales/comp_view_job.aspx?cbh={0}" DataNavigateUrlFieldsEncode="true"   Target="_blank" />
                 <ext:WindowField ColumnID="myWindowField2" Width="120px" WindowID="Window2" DataTextField="tel" HeaderText="电话号码" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="../sales/tel_view.aspx?sid={0}" DataWindowTitleField="tel"
                DataWindowTitleFormatString="查看电话记录 - {0}" />

                <ext:BoundField Width="80px" DataField="pname" HeaderText="业务员"  SortField="pname" />
           
                      <ext:BoundField Width="100px" DataField="person" HeaderText="联系人" SortField="person"  />
                            <ext:TemplateField Width="160px"  HeaderText="电话内容" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Server.HtmlDecode(Eval("pmemo").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
                     <ext:BoundField Width="100px" DataField="pdtime" HeaderText="通话时间" DataFormatString="{0:yyyy-MM-dd}" SortField="pdtime"  />   
                           <ext:BoundField Width="120px" DataField="sdtime" HeaderText="系统记时" SortField="sdtime"  />
          
        </Columns>        
         </ext:Grid>
                     
          </Items>
        </ext:Panel>
       
               
                          <ext:Button ID="Button3" runat="server" Text="首页"   CssClass="inline"   OnClick="btnf_Click"> </ext:Button>
                  <ext:Button ID="Button1" runat="server" Text="上一页"   CssClass="inline"  OnClick="btnpre_Click"></ext:Button>
                    <ext:Button ID="Button2" runat="server" Text="下一页"  CssClass="inline"  OnClick="btnnext_Click" >     </ext:Button>    
                <ext:Button ID="Button4" runat="server" Text="尾页"   CssClass="inline"   OnClick="btne_Click" > </ext:Button>
                  
                   
                       <ext:TextBox ID="txtgo"  runat="server" ShowLabel="false"   CssClass="inline"  Width="20px" Text="1" >  </ext:TextBox>
                <ext:Button ID="btngo" runat="server"  Text="Go"   CssClass="inline"  OnClick="btngo_Click" ></ext:Button>
                 <ext:Label runat="server" Label="当前页" Text=""   CssClass="inline" ID="lblpgid" > </ext:Label>
                    <ext:Label runat="server"   Label="总页数" Text="" ShowLabel="true"  CssClass="inline" ID="lblpgct" >  </ext:Label>
         
                <ext:Label ID="lblcount" runat="server" Label="总记录"   CssClass="inline" ></ext:Label>
                   
                 
                 </Items>
            
        </ext:Panel>

        <ext:Window ID="Window2" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="750px" Height="309px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
